package org.example.shop.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.shop.entity.Goods;

import java.util.List;

@Mapper
public interface GoodsMapper {
    List<Goods> selectAll();
    List<Goods> selectAllNew();
    // 新增分页相关方法
    List<Goods> selectByPage(@Param("offset") int offset, @Param("pageSize") int pageSize);
    long count();
    List<Goods> selectAllHot();

    List<Goods> selectHotRandom();
}
